package com.shenyong.ladmin.controller;

import com.shenyong.ladmin.logConfig.Log;
import com.shenyong.ladmin.logConfig.OperationType;
import com.shenyong.ladmin.service.ReplyService;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 后台回复
 */
@RestController
public class ReplyController {
    @Autowired
    private ReplyService replyService;
    @RequiresAuthentication
    @Log(describe = "删除用户回复",operationType= OperationType.DELETE)
    @RequestMapping("delReplyById")
    public int delReply(int reply_id) {
        return replyService.delReply(reply_id);
    }
}
